﻿<%@ Page Language="C#" MasterPageFile="~/QuanLy/QuanLy.master" AutoEventWireup="true"
    CodeFile="QLTaiKhoan.aspx.cs" Inherits="QuanLy_QLTaiKhoan" Title="Phần quản lý hệ thống" %>

<%@ Register Src="../UserControl/UCPhanTrang.ascx" TagName="UCPhanTrang" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script language="javascript" type="text/javascript">
// <!CDATA[

function chkAll_onclick() {

}

function chkAll_onclick() {

}

// ]]>
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="title">
        <asp:Label ID="Label1" runat="server" Text="Không có thành viên nào có quyền hạn này!"></asp:Label>
    </div>
    <div class="toolbar">
        <asp:Button Text="Xóa thành viên" runat="server" ID="btnXoa" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" OnClick="btnXoa_Click" />
        <asp:Button Text="Cấp quyền hạn 1" runat="server" ID="btnCapQuyen1" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" Visible="False" OnClick="btnCapQuyen1_Click" />
        <asp:Button Text="Cấp quyền hạn 2" runat="server" ID="btnCapQuyen2" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" Visible="False" OnClick="btnCapQuyen2_Click" />
        <asp:Button Text="Cấp quyền hạn 3" runat="server" ID="btnCapQuyen3" CssClass="multidelete"
            BackColor="#6699FF" BorderColor="Black" BorderStyle="Double" Font-Bold="True"
            ForeColor="Maroon" Visible="False" OnClick="btnCapQuyen3_Click" />
    </div>
    <table class="list">
        <thead>
            <tr>
                <th class="cid">
                    <input type="checkbox" id="chkAll" />
                </th>
                <th class="small">
                    Hình ảnh
                </th>
                <th>
                    Tên tài khoản
                </th>
                <th>
                    Họ và tên
                </th>
                <th class="ndk">
                    Ngày sinh
                </th>
                <th class="qh">
                    Quyền sử dụng
                </th>
                <th class="small">
                    Ma TK
                </th>
            </tr>
        </thead>
        <asp:Repeater runat="server" ID="repProd">
            <AlternatingItemTemplate>
                <tr class="even">
                    <td>
                        <input type="checkbox" name='cid' value='<%#Eval("MaTaiKhoan") %>' />
                    </td>
                    <td>
                        <a href='<%# DAL.Connect.Link.DenTaiKhoan(Eval("MaTaiKhoan").ToString()) %>'>
                            <asp:Image ID="Image1" runat="server" Height="50px" ImageUrl='<%#DAL.Connect.Link.LayHinhAnh(Eval("AnhDaiDien").ToString())%>'
                                Width="60px" />
                        </a>
                    </td>
                    <td class="link">
                        <a href='<%# DAL.Connect.Link.DenTaiKhoan(Eval("MaTaiKhoan").ToString()) %>'>
                            <%#Eval("TenDangNhap")%>
                        </a>
                    </td>
                    <td class="link">
                        <%#Eval("HoVaTen")%>
                    </td>
                    <td>
                        <%#Eval("NgaySinh")%>
                    </td>
                    <td class="qh">
                        <%#Eval("QuyenSuDung")%>
                    </td>
                    <td>
                        <%#Eval("MaTaiKhoan")%>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <input type="checkbox" name='cid' value='<%#Eval("MaTaiKhoan") %>' />
                    </td>
                    <td>
                        <a href='<%# DAL.Connect.Link.DenTaiKhoan(Eval("MaTaiKhoan").ToString()) %>'>
                            <asp:Image ID="Image1" runat="server" Height="50px" ImageUrl='<%# DAL.Connect.Link.LayHinhAnh(Eval("AnhDaiDien").ToString())%>'
                                Width="60px" />
                        </a>
                    </td>
                    <td class="link">
                        <a href='<%# DAL.Connect.Link.DenTaiKhoan(Eval("MaTaiKhoan").ToString()) %>'>
                            <%#Eval("TenDangNhap")%>
                        </a>
                    </td>
                    <td class="link">
                        <%#Eval("HoVaTen")%>
                    </td>
                    <td>
                        <%#Eval("NgaySinh")%>
                    </td>
                    <td class="qh">
                        <%#Eval("QuyenSuDung")%>
                    </td>
                    <td>
                        <%#Eval("MaTaiKhoan")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <uc1:UCPhanTrang ID="PagerBottom" runat="server" />
</asp:Content>
